//package com.pro.staffmanage.dao;
//
//import com.pro.staffmanage.pojo.Department;
//import org.springframework.stereotype.Repository;
//import java.util.Collection;
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * @Author: Haotian Cui
// * @Date: 2022/7/22 - 07 - 22 - 15:40
// * @Description: com.pro.staffmanage.dao
// * @Project: staffmanage
// * @version: 1.0
// */
//@Repository
//public class DepartmentDao {
//
//    private static Map<Integer , Department> departmentMap = null;
//
//    //  Mock data in database (mock with static storage)
//    static{
//        //   Create a department table
//        departmentMap = new HashMap<>();
//        //   Filling data
//        departmentMap.put(101, new Department(101, "教学部"));
//        departmentMap.put(102, new Department(102, "市场部"));
//        departmentMap.put(103, new Department(103, "教研部"));
//        departmentMap.put(104, new Department(104, "运营部"));
//        departmentMap.put(105, new Department(105, "后勤部"));
//    }
//
//    //  crud
//
//    /**
//     * Get all departments
//     *
//     * @return Collection<Department> -- departments
//     */
//    public Collection<Department> getAllDepartment(){
//        return departmentMap.values();
//    }
//
//    /**
//     * Get a single department (by id)
//     *
//     * @param id -- Integer
//     * @return Department -- department
//     */
//    public Department getDepartment(Integer id){
//        return departmentMap.get(id);
//    }
//
//}
